home *** CD-ROM | disk | FTP | other *** search
- Path: newsfeed.internetmci.com!btnet!usenet
- From: ehteam@telecall.co.uk (Paul Harris)
- Newsgroups: comp.lang.c++,rec.games.programmer,alt.msdos.programmer,comp.programming
- Subject: Re: Young programmers read me.
- Date: 11 Apr 1996 17:44:06 GMT
- Organization: BTnet, BT Public Internet Service
- Message-ID: <1557.6675T1105T358@telecall.co.uk>
- References: <4kj3rp$11d@news1.mnsinc.com>
- NNTP-Posting-Host: dial14.telecall.co.uk
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
-
- All my life I've been waiting for someone to talk about "Re: Young
- programmers read me.", then on 11-Apr-96 14:10:01, Paul Speed said:
-
- >Glenn Farrow (gfarrow@rainbow.rmii.com) wrote:
- >: John Joseph Newbigin <079519@bud.cc.swin.edu.au> writes:
-
- >: >But it is a lot easier to read
-
- >: >if(something_happened)
- >: >{
- >: > do_something_else();
- >: >}
- >: >is_n't_it(); :)
-
- >: Nonesense. This style is extremely annoying because it spreads the code
- >: out too much, it increases the amount you have to page around a source
- >: file. Putting "{" on a separate line is a waste of space that should be
- >: occupied by code.
-
- > Sure, I can understand that this might be a problem if you're
- >still using edlin. :) This is really a personal preference issue and
- >nobody is going to change anyone else's mind. My problem with the less
- >space argument is that it implies that you don't comment your code either.
- >Not to mention the fact that you might as well shove most of your code
- >onto the same lines, only line-breaking when absolutely needed.
-
- >void foo(int i, char *list){int t;for(t=0;t<i;t++){printf("#%i",t);
- >printf("%s\n",list[t]);}printf("%i total.\n",t);}
-
- > Wow! Look at how much space that saved. I could put all my code
- >in just two or three pages. :) I much prefer.
-
- There is a neat feature in Amos on the Amiga called "fold", well, really
- it is a feature of the Amos editor, to pack functions or expand them as
- you require.
-
-
- Paul
-
- Internet: ehteam@telecall.co.uk, http://www.telecall.co.uk/pharris/
- Fidonet: 2:255/110.2
-
-
-